home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stunning Games
/
Stunning Games volume 1.iso
/
titles
/
descent
/
play$.bat
< prev
next >
Wrap
DOS Batch File
|
1995-03-08
|
2KB
|
78 lines
@Echo Off
set x=x
Echo Copying Files To Temporary Directory On Harddisk.......
if not exist c:\$temp\*.* goto make
goto exs
:make
set x=ZAP
md c:\$temp >nul
:exs
xcopy . c:\$temp >nul
:handler
If errorlevel 0 goto run
if errorlevel 1 goto nocd
if errorlevel 2 goto break
if errorlevel 4 goto nomem
if errorlevel 5 goto diskerr
Echo An Unknown Error Occured......
goto delfile
:break
Echo You Pressed CTRL+BREAK........
Echo Aborting......
goto delfile
:nomem
Echo An Initialization Error Occured;
Echo There is not Enough Free Memory or Disk Space to Complete The Operation
goto delfile
:nocd
Echo The (Source) Files Could not Be Found!
Echo Aborting.......
goto delfile
:diskerr
Echo A Disk Write Error Occured......
Echo There Is Not Enough Disk Space......
Goto delfile
:run
c:
cd\$temp
attrib -R *.* >nul
Echo Starting Program.......
setup
descent
Echo Deleting Temporary Files..........
:delfile
c:
cd\$temp
attrib -R *.* /s >nul
del DESCENT.B50 >nul
del DESCENT.EXE >nul
del DESCENT.HOG >nul
del DESCENT.M50 >nul
del DESCENT.PHX >nul
del DESCENT.PIG >nul
del DESCENT2.ADV >nul
del DESCENTG.INI >nul
del FILE_ID.DIZ >nul
del HMIDET.386 >nul
del HMIDRV.386 >nul
del HMIMDRV.386 >nul
del ORDERFRM.TXT >nul
del README.TXT >nul
del REFCARD.PCX >nul
del REFCARD.TXT >nul
del SETUP.EXE >nul
del PLAY$.BAT >nul
Echo Temporary Files Removed
cd..
if "%x%"=="ZAP" goto ZAP
Echo Your $TEMP Directory already existed, and was not empty.
Echo $TEMP NOT Deleted
goto out
:zap
echo y|del c:\$temp\. >nul
rd c:\$temp >nul
:out
%cdrom%:
cd\